<div class="studentinfos view">
<h2><?php  echo __('Studentinfo');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Student'); ?></dt>
		<dd>
			<?php echo $this->Html->link($studentinfo['Student']['id'], array('controller' => 'students', 'action' => 'view', $studentinfo['Student']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Gender'); ?></dt>
		<dd>
			<?php echo $this->Html->link($studentinfo['Gender']['name'], array('controller' => 'genders', 'action' => 'view', $studentinfo['Gender']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Citizenship'); ?></dt>
		<dd>
			<?php echo $this->Html->link($studentinfo['Citizenship']['name'], array('controller' => 'citizenships', 'action' => 'view', $studentinfo['Citizenship']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Foreignlanguage'); ?></dt>
		<dd>
			<?php echo $this->Html->link($studentinfo['Foreignlanguage']['name'], array('controller' => 'foreignlanguages', 'action' => 'view', $studentinfo['Foreignlanguage']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Number Acc'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['number_acc']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Number Eduline'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['number_eduline']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Fio'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['fio']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Eng Fio'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['eng_fio']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Enrollmentdate'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['enrollmentdate']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Passport Birthplace'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['passport_birthplace']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Passport Birthdate'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['passport_birthdate']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Passport Number'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['passport_number']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Phone'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['phone']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Mobile'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['mobile']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Email'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['email']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Moreinfo'); ?></dt>
		<dd>
			<?php echo h($studentinfo['Studentinfo']['moreinfo']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Educationline'); ?></dt>
		<dd>
			<?php echo $this->Html->link($studentinfo['Educationline']['name'], array('controller' => 'educationlines', 'action' => 'view', $studentinfo['Educationline']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Studentinfo'), array('action' => 'edit', $studentinfo['Studentinfo']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Studentinfo'), array('action' => 'delete', $studentinfo['Studentinfo']['id']), null, __('Are you sure you want to delete # %s?', $studentinfo['Studentinfo']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Studentinfos'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Studentinfo'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Students'), array('controller' => 'students', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Student'), array('controller' => 'students', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Genders'), array('controller' => 'genders', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Gender'), array('controller' => 'genders', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Citizenships'), array('controller' => 'citizenships', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Citizenship'), array('controller' => 'citizenships', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Foreignlanguages'), array('controller' => 'foreignlanguages', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Foreignlanguage'), array('controller' => 'foreignlanguages', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Educationlines'), array('controller' => 'educationlines', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Educationline'), array('controller' => 'educationlines', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Contracts'), array('controller' => 'contracts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Contract'), array('controller' => 'contracts', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Medcomissions'), array('controller' => 'medcomissions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Medcomission'), array('controller' => 'medcomissions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Mideduadequacydocs'), array('controller' => 'mideduadequacydocs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Mideduadequacydoc'), array('controller' => 'mideduadequacydocs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Migrationcards'), array('controller' => 'migrationcards', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Migrationcard'), array('controller' => 'migrationcards', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Payments'), array('controller' => 'payments', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Payment'), array('controller' => 'payments', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Registrations'), array('controller' => 'registrations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Registration'), array('controller' => 'registrations', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Studentinsurances'), array('controller' => 'studentinsurances', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Studentinsurance'), array('controller' => 'studentinsurances', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Visas'), array('controller' => 'visas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Visa'), array('controller' => 'visas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Hostels'), array('controller' => 'hostels', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hostel'), array('controller' => 'hostels', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Contracts');?></h3>
	<?php if (!empty($studentinfo['Contract'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Studentinfo Id'); ?></th>
		<th><?php echo __('Info'); ?></th>
		<th><?php echo __('From'); ?></th>
		<th><?php echo __('Until'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($studentinfo['Contract'] as $contract): ?>
		<tr>
			<td><?php echo $contract['id'];?></td>
			<td><?php echo $contract['studentinfo_id'];?></td>
			<td><?php echo $contract['info'];?></td>
			<td><?php echo $contract['from'];?></td>
			<td><?php echo $contract['until'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'contracts', 'action' => 'view', $contract['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'contracts', 'action' => 'edit', $contract['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'contracts', 'action' => 'delete', $contract['id']), null, __('Are you sure you want to delete # %s?', $contract['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Contract'), array('controller' => 'contracts', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Medcomissions');?></h3>
	<?php if (!empty($studentinfo['Medcomission'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Studentinfo Id'); ?></th>
		<th><?php echo __('Year'); ?></th>
		<th><?php echo __('From'); ?></th>
		<th><?php echo __('Until'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($studentinfo['Medcomission'] as $medcomission): ?>
		<tr>
			<td><?php echo $medcomission['id'];?></td>
			<td><?php echo $medcomission['studentinfo_id'];?></td>
			<td><?php echo $medcomission['year'];?></td>
			<td><?php echo $medcomission['from'];?></td>
			<td><?php echo $medcomission['until'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'medcomissions', 'action' => 'view', $medcomission['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'medcomissions', 'action' => 'edit', $medcomission['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'medcomissions', 'action' => 'delete', $medcomission['id']), null, __('Are you sure you want to delete # %s?', $medcomission['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Medcomission'), array('controller' => 'medcomissions', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Mideduadequacydocs');?></h3>
	<?php if (!empty($studentinfo['Mideduadequacydoc'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Studentinfo Id'); ?></th>
		<th><?php echo __('Info'); ?></th>
		<th><?php echo __('Inprocess'); ?></th>
		<th><?php echo __('Adequacy'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($studentinfo['Mideduadequacydoc'] as $mideduadequacydoc): ?>
		<tr>
			<td><?php echo $mideduadequacydoc['id'];?></td>
			<td><?php echo $mideduadequacydoc['studentinfo_id'];?></td>
			<td><?php echo $mideduadequacydoc['info'];?></td>
			<td><?php echo $mideduadequacydoc['inprocess'];?></td>
			<td><?php echo $mideduadequacydoc['adequacy'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'mideduadequacydocs', 'action' => 'view', $mideduadequacydoc['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'mideduadequacydocs', 'action' => 'edit', $mideduadequacydoc['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'mideduadequacydocs', 'action' => 'delete', $mideduadequacydoc['id']), null, __('Are you sure you want to delete # %s?', $mideduadequacydoc['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Mideduadequacydoc'), array('controller' => 'mideduadequacydocs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Migrationcards');?></h3>
	<?php if (!empty($studentinfo['Migrationcard'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Studentinfo Id'); ?></th>
		<th><?php echo __('Entrydate'); ?></th>
		<th><?php echo __('Ser'); ?></th>
		<th><?php echo __('Num'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($studentinfo['Migrationcard'] as $migrationcard): ?>
		<tr>
			<td><?php echo $migrationcard['id'];?></td>
			<td><?php echo $migrationcard['studentinfo_id'];?></td>
			<td><?php echo $migrationcard['entrydate'];?></td>
			<td><?php echo $migrationcard['ser'];?></td>
			<td><?php echo $migrationcard['num'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'migrationcards', 'action' => 'view', $migrationcard['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'migrationcards', 'action' => 'edit', $migrationcard['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'migrationcards', 'action' => 'delete', $migrationcard['id']), null, __('Are you sure you want to delete # %s?', $migrationcard['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Migrationcard'), array('controller' => 'migrationcards', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Payments');?></h3>
	<?php if (!empty($studentinfo['Payment'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Studentinfo Id'); ?></th>
		<th><?php echo __('Paidacademicyear'); ?></th>
		<th><?php echo __('M1'); ?></th>
		<th><?php echo __('M2'); ?></th>
		<th><?php echo __('M3'); ?></th>
		<th><?php echo __('M4'); ?></th>
		<th><?php echo __('M5'); ?></th>
		<th><?php echo __('M6'); ?></th>
		<th><?php echo __('M7'); ?></th>
		<th><?php echo __('M8'); ?></th>
		<th><?php echo __('M9'); ?></th>
		<th><?php echo __('M10'); ?></th>
		<th><?php echo __('M11'); ?></th>
		<th><?php echo __('M12'); ?></th>
		<th><?php echo __('Info'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($studentinfo['Payment'] as $payment): ?>
		<tr>
			<td><?php echo $payment['id'];?></td>
			<td><?php echo $payment['studentinfo_id'];?></td>
			<td><?php echo $payment['paidacademicyear'];?></td>
			<td><?php echo $payment['m1'];?></td>
			<td><?php echo $payment['m2'];?></td>
			<td><?php echo $payment['m3'];?></td>
			<td><?php echo $payment['m4'];?></td>
			<td><?php echo $payment['m5'];?></td>
			<td><?php echo $payment['m6'];?></td>
			<td><?php echo $payment['m7'];?></td>
			<td><?php echo $payment['m8'];?></td>
			<td><?php echo $payment['m9'];?></td>
			<td><?php echo $payment['m10'];?></td>
			<td><?php echo $payment['m11'];?></td>
			<td><?php echo $payment['m12'];?></td>
			<td><?php echo $payment['info'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'payments', 'action' => 'view', $payment['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'payments', 'action' => 'edit', $payment['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'payments', 'action' => 'delete', $payment['id']), null, __('Are you sure you want to delete # %s?', $payment['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Payment'), array('controller' => 'payments', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Registrations');?></h3>
	<?php if (!empty($studentinfo['Registration'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Studentinfo Id'); ?></th>
		<th><?php echo __('Identifydoctype Id'); ?></th>
		<th><?php echo __('Adress'); ?></th>
		<th><?php echo __('Stay Until'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($studentinfo['Registration'] as $registration): ?>
		<tr>
			<td><?php echo $registration['id'];?></td>
			<td><?php echo $registration['studentinfo_id'];?></td>
			<td><?php echo $registration['identifydoctype_id'];?></td>
			<td><?php echo $registration['adress'];?></td>
			<td><?php echo $registration['stay_until'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'registrations', 'action' => 'view', $registration['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'registrations', 'action' => 'edit', $registration['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'registrations', 'action' => 'delete', $registration['id']), null, __('Are you sure you want to delete # %s?', $registration['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Registration'), array('controller' => 'registrations', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Studentinsurances');?></h3>
	<?php if (!empty($studentinfo['Studentinsurance'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Studentinfo Id'); ?></th>
		<th><?php echo __('Insurance Id'); ?></th>
		<th><?php echo __('Info'); ?></th>
		<th><?php echo __('From'); ?></th>
		<th><?php echo __('Until'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($studentinfo['Studentinsurance'] as $studentinsurance): ?>
		<tr>
			<td><?php echo $studentinsurance['id'];?></td>
			<td><?php echo $studentinsurance['studentinfo_id'];?></td>
			<td><?php echo $studentinsurance['insurance_id'];?></td>
			<td><?php echo $studentinsurance['info'];?></td>
			<td><?php echo $studentinsurance['from'];?></td>
			<td><?php echo $studentinsurance['until'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'studentinsurances', 'action' => 'view', $studentinsurance['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'studentinsurances', 'action' => 'edit', $studentinsurance['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'studentinsurances', 'action' => 'delete', $studentinsurance['id']), null, __('Are you sure you want to delete # %s?', $studentinsurance['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Studentinsurance'), array('controller' => 'studentinsurances', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Visas');?></h3>
	<?php if (!empty($studentinfo['Visa'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Studentinfo Id'); ?></th>
		<th><?php echo __('Visastype Id'); ?></th>
		<th><?php echo __('Issue Date'); ?></th>
		<th><?php echo __('Entry From'); ?></th>
		<th><?php echo __('Stay Until'); ?></th>
		<th><?php echo __('Period'); ?></th>
		<th><?php echo __('Purpose'); ?></th>
		<th><?php echo __('Limmited By'); ?></th>
		<th><?php echo __('Info'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($studentinfo['Visa'] as $visa): ?>
		<tr>
			<td><?php echo $visa['id'];?></td>
			<td><?php echo $visa['studentinfo_id'];?></td>
			<td><?php echo $visa['visastype_id'];?></td>
			<td><?php echo $visa['issue_date'];?></td>
			<td><?php echo $visa['entry_from'];?></td>
			<td><?php echo $visa['stay_until'];?></td>
			<td><?php echo $visa['period'];?></td>
			<td><?php echo $visa['purpose'];?></td>
			<td><?php echo $visa['limmited_by'];?></td>
			<td><?php echo $visa['info'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'visas', 'action' => 'view', $visa['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'visas', 'action' => 'edit', $visa['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'visas', 'action' => 'delete', $visa['id']), null, __('Are you sure you want to delete # %s?', $visa['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Visa'), array('controller' => 'visas', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Hostels');?></h3>
	<?php if (!empty($studentinfo['Hostel'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($studentinfo['Hostel'] as $hostel): ?>
		<tr>
			<td><?php echo $hostel['id'];?></td>
			<td><?php echo $hostel['name'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'hostels', 'action' => 'view', $hostel['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'hostels', 'action' => 'edit', $hostel['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'hostels', 'action' => 'delete', $hostel['id']), null, __('Are you sure you want to delete # %s?', $hostel['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Hostel'), array('controller' => 'hostels', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
